import React from "react"
import { createBrowserRouter } from "react-router-dom"
import App from "../App"
import Xk from "../page/Xk"
import Homework from "../page/Homework"
import Status from "../page/Status"
import Xiang from "../page/Xiang"
import Add from "../page/Add"
import Student from "../page/Student"
import Settings from "../page/Settings"
import Time from "../page/Time"

const router = createBrowserRouter([
  {path:'/',element:<App/>,children:[
    {path:'/xk',element:<Xk></Xk>},
    {path:"/homework",element:<Homework/>},
    {path:"/status",element:<Status></Status>},
    {path:"/xiang",element:<Xiang></Xiang>},
    {path:'/xk/add',element:<Add></Add>},
    {path:'/xk/student',element:<Student></Student>},
    {path:'/xk/settings',element:<Settings></Settings>},
    {path:'/xk/time',element:<Time></Time>}
  ]}
])

export default router


